<?php
namespace app\user\model;
use think\Db;
use app\common\model\Common;
class Visit extends Common
{
	protected $table = 'mps_visit_log';
	protected $append = ['cus_time'];

	/**
	* 获取器
	*/
	public function getAddtimeAttr($value)
	{
		return $value > 0 ? date('Y-m-d H:i:s',$value) : '---';
	}
	public function getCusTimeAttr($value, $data)
	{
		return date('Y-m-d',$data['start_time']) . ' ~ ' . date('Y-m-d',$data['end_time']);
	}
}